package com.yunfeng.master.infrastructure.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunfeng.master.infrastructure.dto.User982ProDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface UserMapper extends BaseMapper<User982ProDTO> {

    @Select("SELECT * FROM 982pro.users WHERE id > #{lastId} ORDER BY id ASC LIMIT #{pageSize}")
    List<User982ProDTO> selectByCursor(long lastId, int pageSize);

}
